Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for kotlin multiplatform #44

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

Rafael2616
Copy link
Contributor

this commit adds support for most kotlin multiplatform targets including ios, wasm, js, jvm also fixes #41

all tests have passed
compiled for all platform and got successful

  • setup targets
  • move tests from androidTest to androidUnitTest sourceSet, some dependencies are android-specific and we cant put it on commonTest sourceSet
  • moved previews to androidMain sourceSet as it is android-specific
  • migrated some components to material3
  • bumped Kotlin to 2.0.20
  • bumped agp to 8.6.0
  • remove explicit compose buildFeature declaration as is is no more needed after AGP 8.5.2
  • bumped some dependencies to their latest version
  • get rid on some unused dependencies like appcompat etc..
  • use jetbrains compose compiler and jetbrains compose dependencies

this commit adds support for most kotlin multiplatform targets including ios, wasm, js, jvm
also fixes nanihadesuka#41

all tests have passed
compiled for all platform and got successful

* setup targets
* move tests from androidTest to androidUnitTest sourceSet, some dependencies are android-specific and we cant put it on commonTest sourceSet
* moved previews to androidMain sourceSet as it is android-specific
* migrated some components to material3
* bumped Kotlin to 2.0.20
* bumped agp to 8.6.0
* remove explicit compose buildFeature declaration as is is no more needed after AGP 8.5.2
* bumped some dependencies to their latest version
* get rid on some unused dependencies like appcompat etc..
* use jetbrains compose compiler and jetbrains compose dependencies
@Rafael2616
Copy link
Contributor Author

Also the ":app" module ramains Android only. didn't think it was a good idea to migrate it at this time, maybe in another pull

@nanihadesuka
Copy link
Owner

Wow 🌞

Sorry for the lateness. Looks very promising! Will take a look, and also will look at KMP topics before as I don't have much experience at it to make a proper review. Give me 1 week to look at the PR

@nanihadesuka nanihadesuka self-requested a review October 2, 2024 18:04
@nanihadesuka nanihadesuka added the enhancement New feature or request label Oct 2, 2024
@Rafael2616
Copy link
Contributor Author

Sure, no problem, If you have any questions just ask, I'm already using this in my app, but I had to embed it in this one, so I decided to contribute 😅

lib/build.gradle.kts Outdated Show resolved Hide resolved
@nanihadesuka
Copy link
Owner

Thanks for the work. I will merge then do a cursory check, update readme & publish it the following weekend

@nanihadesuka nanihadesuka merged commit 04fa497 into nanihadesuka:master Oct 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multiplatform
2 participants